def cal():
    global Sn, Hn
    Sn += Hn + Hn/2
    Hn /= 2

    return Hn

Hn = 100
Sn = 0
times = int(input())
for i in range(times):
    Hn = cal()

print(f"Total of road is {Sn} meter")
print(f"The height is {Hn} meter")